package com.TRoom.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/index")
public class IndexController {

    @RequestMapping("/bbs")
    public String index(Model model){
        model.addAttribute("key","hahahah");
        return "bbs";
    }

    @RequestMapping("/ttt")
    @ResponseBody
    public String body(){
        return "ttt";
    }
}
